<%@ page contentType="text/html"%>
<%@ page pageEncoding="UTF-8"%>
<%@ page import="familytree.persistencia.pojos.Usuario;" %>
<%@ taglib prefix ="html" uri = "/WEB-INF/struts-html.tld"%>
<%@ taglib prefix="bean" uri="/WEB-INF/struts-bean.tld" %>
<%@ taglib prefix="logic" uri="/WEB-INF/struts-logic.tld" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="a" uri="http://jmaki/v1.0/jsp" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <title><bean:message key="welcome.title"/></title>
        <link  rel="stylesheet" type="text/css" href="resources/estilos/estilo.css"/>
        <script type="text/javascript" src="resources/javascript/javascript.js"></script>
    </head>
    <body>
        <%Usuario user = (Usuario)request.getSession().getAttribute("usuarioActual");
        if (user == null){
        %>
        <%@ include file="Redireccion.jsp" %>
        <%}
        
        %>
        <%@ include file="cabecera.jsp" %>
        <%@ include file="MensajesErrorValidacion.jsp" %>
        <html:form action="/editarPerfil.do">
            <table border="0" class="contenedor" cellpadding="2" cellspacing="2">
                <tbody>
                    <tr>
                        <td colspan="2" class="titulo" align="center">
                            <bean:message key = "titulo.cambiarPassword"/>
                        </td>
                    </tr>
                    <tr>
                        <td class="text"><bean:message key="formulario.passwordAntigua" /> </td>
                        <td><html:password property="antiguoPassword" styleClass="textBox" value="" /></td>
                    </tr>
                    <tr>
                        
                            <td class="text"><bean:message key="formulario.passwordNueva" /> </td>
                        <td><html:password property="nuevoPassword" styleClass="textBox" value="" /></td>
                    </tr>
                    <tr>
                        
                        <td class="text"><bean:message key="formulario.repetirPassword" /> </td>
                        <td><input type="password" name="contrasena2" class="textBox"></td>
                            
                        
                    </tr>
                    <tr>
                        <td colspan="2">
                            <html:submit>Enviar</html:submit>
                        </td>
                        <td align="center">
                            <input type="button" value="Cancelar" onclick="window.location.href = '\RinconUsuario.jsp'" />
                        </td>
                    </tr>
                </tbody>
                
            </table>
        </html:form>
        <%@ include file="pie.jsp" %>
    </body>
</html>
